include ../make-apptools-include.mk

LIB = $(OBJ)/libhdos.a

OBJS = $(OBJ)/label.o $(OBJ)/standard.o $(OBJ)/date.o $(OBJ)/groupio.o \
	$(OBJ)/physio.o $(OBJ)/init.o $(OBJ)/dir.o $(OBJ)/grt.o $(OBJ)/rgt.o $(OBJ)/fileio.o

$(LIB): $(OBJS)
	ar vr $@ $?

htest:	htest.o $(OBJS)
	gcc -o htest htest.o $(OBJS)

clean:
	rm -f $(LIB)
	rm -f $(OBJS)
	@> $(LIB); rm -f $(LIB)

realclean:	clean
	rm -f *~
	rm -f ,out*

CFILES =	label.c standard.c date.c groupio.c physio.c \
		init.c dir.c grt.c rgt.c fileio.c

HFILES =	hdos.h standard.h date.h label.h dir.h fileio.h hdosio.h physio.h groupio.h

MISC = 		Makefile

SRCFILES = $(CFILES) $(HFILES) $(MISC)

dist:
	[ -d $(DISTDIR) ] || mkdir $(DISTDIR)
	for file in $(SRCFILES); do ln $$file $(DISTDIR)/$$file; done
